#ifndef DashboardUI_EditUser_H
#define DashboardUI_EditUser_H

#include "FieldValidator.h"
#include "PersonDatabase.h"

#include <QWidget>

namespace Ui {
class DashboardUI_EditUser;
}

class DashboardUI_EditUser : public QWidget
{
    Q_OBJECT
    
public:
    explicit DashboardUI_EditUser(QWidget *parent = 0);
    ~DashboardUI_EditUser();

    void setInfo(PersonInfo *);
    void setViewOnly();
    
private slots:
    void on_submitButton_clicked();

private:
    Ui::DashboardUI_EditUser *ui;
    FieldValidator validator;
};

#endif // DashboardUI_EditUser_H
